{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>

<style type="text/css">
.bg-1 {
    height: 40px;
    background-color: #e5e5e5;
    border-bottom: 1px solid #e4e7ed;
}
 .radius:hover{
 	background:#e5e5e5;
 	border-color: #e5e5e5;
 	color: #333;
 }
 span:hover{
 	color: #333;
 }
</style>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>
		系统管理
		<span class="c-gray en">&gt;</span>
		运营管理
		<span class="c-gray en">&gt;</span>
		自助活动大厅
		<a class="btn btn-success radius r"
			style="line-height: 1.6em; margin-top: 3px"
			href="javascript:location.replace(location.href);" title="刷新">
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l">
			<a style="height: 40px;line-height: 40px; background-color: #636363;color: #fff;"
				href="/admin/Operate/yx_tjzzhd"
				class="btn btn-primary radius">添加自助活动 </a>
		</span>
	</div>


	<div class="page-container">
		<div id="tab-system" class="HuiTab">
			<div class="tabCon">
				<div class="mt-20">
					<table
						class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
						<thead>
							<tr class="text-c">
								<th>ID</th>
								<th>活动名称</th>
								<th>发布时间</th>
								<th>发布人</th>
								<th>活动周期</th>
								<th>单分金额</th>
								<th>活动状态</th>
								<th>操作</th>
							</tr>

						</thead>
						<tbody>
							{volist name="list" id="DL"}

							<tr class="text-c">
								<td>{$DL.id}</td>
								<td>
									<span
										style='display: block; width: 200px; margin: 0 auto; text-align: center; background: none; border: none; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: keep-all;'>{$DL.hd_name}</span>
								</td>
								<td>{$DL.fatime|date='Y-m-d H:i:s',###}</td>
								<td>{$DL.faadmin}</td>
								<td>{if(1==$DL.tjzq)}昨日{elseif(2==$DL.tjzq)}上周{else/}上月{/if}</td>
								<td>{$DL.hd_je}</td>
								<td>{$DL.ifopen==1 ? '开启' : '关闭'}</td>
								
								<td>
									<a href='/admin/operate/yx_tjzzhd?id={$DL.id}' title="修改" >
											<i class="Hui-iconfont">&#xe6df;</i>
										</a>
									<a href='/admin/operate/yx_zzhdStatus?id={$DL.id}' class="ml-5" title="{$DL.ifopen==1 ? '关闭' : '开启'}">
										{$DL.ifopen==2 ? ' <i class="Hui-iconfont">&#xe6de;</i> ' : ' <i class="Hui-iconfont">&#xe6dc;</i>'}
									</a>
									<a class="ml-5" href="javascript:;" onclick="if(confirm('是否确认操作？')) {window.location.href='/admin/operate/yx_zzhdDel?id={$DL.id}'}">
										<i class="Hui-iconfont">&#xe6e2;</i>
									</a>
								</td>

							</tr>
							{/volist}
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
		</div>
	{/block}{block name="js"}
	<script type="text/javascript" src="__SYSMET__/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript">
		$(function() {
			$('.skin-minimal input').iCheck({
				checkboxClass : 'icheckbox-blue',
				radioClass : 'iradio-blue',
				increaseArea : '20%'
			});
			$("#tab-system").Huitab({
				index : 0
			});
		});
	</script>

	{/block}